//
//  SCB_Today_Detail_Model.m
//  Time
//
//  Created by dllo on 16/7/26.
//  Copyright © 2016年 司昌宝. All rights reserved.
//

#import "SCB_Today_Detail_Model.h"
#import "SCBUserinfo.h"
#import "SCBCollinfo.h"
#import "SCBSonginfo.h"
#import "SCBShareinfo.h"

@implementation SCB_Today_Detail_Model

-(void)dealloc{
    [_contentId release];
    [_type release];
    [_typeName release];
    [_title release];
    [_coverimg release];
    [_html release];
    [_images release];
    [_songid release];
    [_isLike release];
    [_views release];
    [_contains release];
    [_mins release];
    [_comments release];
    [_likes release];
    [_addtime release];
    [_scbUserinfo release];
    [_scbCollInfo release];
    [_scbTingInfo release];
    [_scbShareInfo release];
    [_scbSongInfo release];
    [_editor release];
    [super dealloc];
}

-(void)setValue:(id)value forUndefinedKey:(NSString *)key{
    if ([key isEqualToString:@"id"]) {
        self.contentId = value;
    }
    if ([key isEqualToString:@"userinfo"]) {
        self.scbUserinfo = [[SCBUserinfo alloc] init];
        [self.scbUserinfo setValuesForKeysWithDictionary:value];
        [_scbUserinfo release];
    }
    if ([key isEqualToString:@"tingInfo"]) {
        self.scbTingInfo = [[TingContent alloc] init];
        [self.scbTingInfo setValuesForKeysWithDictionary:value];
        [_scbTingInfo release];
    }
    if ([key isEqualToString:@"collInfo"]) {
        self.scbCollInfo = [[SCBCollinfo alloc] init];
        [self.scbCollInfo setValuesForKeysWithDictionary:value];
        [_scbCollInfo release];
    }
    if ([key isEqualToString:@"shareInfo"]) {
        self.scbShareInfo = [[SCBShareinfo alloc] init];
        [self.scbShareInfo setValuesForKeysWithDictionary:value];
        [_scbShareInfo release];
    }
    if ([key isEqualToString:@"songInfo"]) {
        self.scbSongInfo = [[SCBSonginfo alloc] init];
        [self.scbSongInfo setValuesForKeysWithDictionary:value];
        [_scbSongInfo release];
    }
}


@end
